<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WoNiuShop</title>
<style type="text/css">
a:link {
	text-decoration: none;
}
</style>
<link rel="shortcut icon" href="icon.png" type="image/x-icon" />
<link rel="stylesheet" href="css/basic.css" type="text/css" />
<link rel="stylesheet" href="css/good.css" type="text/css" />
<script type="text/javascript">
        //默认提交状态为false
        var commitStatus = false;
        function dosubmit(){
              if(commitStatus==false){
            //提交表单后，讲提交状态改为true
              commitStatus = true;
              return true;
             }else{
              return false;
          }
         }
  </script>
</head>
<body>
	<%@include file="loginandregister.jspf"%>
	<!-- 主要内容 -->
	<form action="ShopCartServlet?gid=${goods.gId}" onsubmit="return dosubmit()"  method="post">
		<div id="good">
			<div id="good-show">
				<img src="${goods.goodImgPath }">
			</div>
			<div id="good-info">
				<table id="good-table">
					<tr>
						<td colspan="2" style="text-align: center;"><h2>${goods.gName}</h2></td>
					</tr>
					<tr class="tr-info">
						<td class="td-title">品牌：</td>
						<td>${goods.brand}</td>
					</tr>
					<tr class="tr-info">
						<td class="td-title">单价：</td>
						<td><span class="s-money">${goods.price}</span></td>
					</tr>

					<tr class="tr-info">
						<td class="td-title">描述：</td>
						<td>${goods.introduce}</td>
					</tr>
					<tr class="tr-info">
						<td class="td-title">库存：</td>
						<td>${goods.instock}</td>
					</tr>
					<!-- <tr class="tr-info">
						<td class="td-title">数量：</td>
						<td><span class="s-btn"><button class="btn1"
									onclick="numMulp()">－</button></span><input type="text" value="1"
							disabled="disabled" id="total" /><span class="s-btn"><button
									class="btn1" onclick="numAdd()">＋</button></span></td>
					</tr> -->
				</table>
			</div>

		</div>
		<div id="gopay">
			<input type="submit" class="btn btn-danger" value="加入购物车">
		</div>
	</form>
	<div id="footer">蜗牛创想科技-woniushop&copy; 版权所有</div>
	<script src="js/basic.js"></script>
	<script src="js/jquery.min.js"></script>
	<script src="js/index.js"></script>
</body>
</html>